import service from "./request"

//授课查询
export function getCourseList() {
    return service({
        url: '/teacher/course/list',
        method: 'get'
    })
}

//教师课表
export function getTeacherList() {
    return service({
        url: '/teacher/timetable',
        method: 'get'
    })
}

//成绩录入 列表
export function submitScoreList(params) {
    return service({
        url: '/teacher/grade/page/' + 1,
        method: 'get',
        params: params
    })
}

//成绩录入 条数
export function submitScoreNum(params) {
    return service({
        url: '/teacher/grade/page/count',
        method: 'get',
        params: params
    })
}

//成绩录入 详情
export function submitScoreInfo(id) {
    return service({
        url: '/teacher/grade/' + id,
        method: 'get'
    })
}

//成绩录入 打分
export function submitScore(data) {
    return service({
        url: '/teacher/grade',
        method: 'put',
        data: data
    })
}